package com.lannuokeji.biz.ac.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author lannuoTeck
 * @since 2018-03-17
 */
@TableName("g_ac_resources")
public class Resources extends Model<Resources> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 父权限id
     */
    private Long pid;
    /**
     * 权限菜单名
     */
    private String name;
    /**
     * 操作类型：1菜单，2业务
     */
    private Integer type;
    /**
     * 菜单排序
     */
    private Integer sort;
    /**
     * 权限样式
     */
    @TableField("styleClass")
    private String styleClass;
    /**
     * 权限URL
     */
    private String uri;
    /**
     * 是否启用.0：禁用，1：启用
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;
    /**
     * 最后一次修改时间
     */
    @TableField("updateTime")
    private Date updateTime;
    @TableField("manageTpl")
    private String manageTpl;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getStyleClass() {
        return styleClass;
    }

    public void setStyleClass(String styleClass) {
        this.styleClass = styleClass;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getManageTpl() {
        return manageTpl;
    }

    public void setManageTpl(String manageTpl) {
        this.manageTpl = manageTpl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Resources{" +
        ", id=" + id +
        ", pid=" + pid +
        ", name=" + name +
        ", type=" + type +
        ", sort=" + sort +
        ", styleClass=" + styleClass +
        ", uri=" + uri +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", manageTpl=" + manageTpl +
        "}";
    }
}
